home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
ctutor.exe
/
ANSWERS
/
CH05_2.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-05-15
|
347b
|
33 lines
#include "stdio.h"
writename()
{
printf("John Q. Doe\n");
}
void main()
{
int index;
for(index = 0 ; index < 10 ; index = index + 1)
writename();
}
/* Result of execution
John Q. Doe
John Q. Doe
John Q. Doe
John Q. Doe
John Q. Doe
John Q. Doe
John Q. Doe
John Q. Doe
John Q. Doe
John Q. Doe
*/